//
//  AssociateAddressCell.swift
//  swiftProject
//
//  Created by ZhangSai on 2021/7/8.
//

import UIKit

class AssociateAddressCell: UITableViewCell {

    @IBOutlet weak var nameLab: UILabel!
    @IBOutlet weak var phoneLab: UILabel!
    @IBOutlet weak var detailLab: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    func setAddressModel(addressModel:AddressModel,nameStr:String,phoneStr:String) {
        self.detailLab.text = addressModel.city + addressModel.region + addressModel.detailAddress
        nameLab.text = addressModel.name
        if phoneStr.count > 0 {
            phoneLab.text = addressModel.phone
        }
    }
   

}
